package top.pengdong.pictureShare.userAuth.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import top.pengdong.pictureShare.common.model.PageUtils;
import top.pengdong.pictureShare.common.model.Query;
import top.pengdong.pictureShare.userAuth.dao.TUserRoleDao;
import top.pengdong.pictureShare.userAuth.entity.TUserRoleEntity;
import top.pengdong.pictureShare.userAuth.service.TUserRoleService;


@Service("tUserRoleService")
public class TUserRoleServiceImpl extends ServiceImpl<TUserRoleDao, TUserRoleEntity> implements TUserRoleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TUserRoleEntity> page = this.page(
                new Query<TUserRoleEntity>().getPage(params),
                new QueryWrapper<TUserRoleEntity>()
        );

        return new PageUtils(page);
    }

}